<?php

$jwtPublicKey = [
    'loc' => "",
    'dev' => "",
    'pre' => "",
    'pdt' => "",
];

return [

    'mysql' => [
        env('MYSQL_NAME') => [
            'host'     => env('DB_HOST'),
            'port'     => env('DB_PORT'),
            'user'     => env('DB_USERNAME'),
            'password' => env('DB_PASSWORD'),
            'charset'  => env('DB_CHARSET'),
            'database' => env('DB_DATABASE'),
        ],
        env('MYSQL_CLUSTER_NAME') => [
            'host'     => env('DB_CLUSTER_HOST'),
            'port'     => env('DB_CLUSTER_PORT'),
            'user'     => env('DB_CLUSTER_USERNAME'),
            'password' => env('DB_CLUSTER_PASSWORD'),
            'charset'  => env('DB_CLUSTER_CHARSET'),
            'database' => env('DB_CLUSTER_DATABASE'),
        ]
    ],

    'redis' => [
        env('REDIS_NAME') => [
            'host'  => env('REDIS_HOST'),
            'port'  => env('REDIS_PORT'),
            'index' => env('REDIS_DATABASE'),
            'auth'  => env('REDIS_PASSWORD'),
        ],
        env('REDIS_CLUSTER_NAME') => [
            'host'  => env('REDIS_CLUSTER_HOST'),
            'port'  => env('REDIS_CLUSTER_PORT'),
            'index' => env('REDIS_CLUSTER_DATABASE'),
            'auth'  => env('REDIS_CLUSTER_PASSWORD'),
        ]
    ],

    'msgq' => [
        env('MSGQ_NAME') => [
            'host'     => env('MSGQ_HOST'),
            'port'     => env('MSGQ_PORT'),
            'user'     => env('MSGQ_USER'),
            'password' => env('MSGQ_PASSWORD'),
            'vhost'    => env('MSGQ_VHOST'),
        ],
        env('MSGQ_CLUSTER_NAME') => [
            'host'     => env('MSGQ_CLUSTER_HOST'),
            'port'     => env('MSGQ_CLUSTER_PORT'),
            'user'     => env('MSGQ_CLUSTER_USER'),
            'password' => env('MSGQ_CLUSTER_PASSWORD'),
            'vhost'    => env('MSGQ_CLUSTER_VHOST'),
        ]
    ],

    'haoapi' => [
        'jjb' => [
            'host'        => env('HAOAPI_JJB_HOST', 'jjbapi.dev.julanling.com'),
            'device_type' => env('HAOAPI_JJB_DEVICE_TYPE', '2'),
            'dt_secret'   => env('HAOAPI_JJB_DT_SECRET', 'secret=apitesfiow9dioeksm')
        ],
        'dgq' => [
            'host'        => env('HAOAPI_DGQ_HOST', 'dgqapi.dev.julanling.com'),
            'device_type' => env('HAOAPI_DGQ_DEVICE_TYPE', '2'),
            'dt_secret'   => env('HAOAPI_DGQ_DT_SECRET', 'secret=apitesj3j9o9pksfrd')
        ],
        'dgd' => [
            'host'        => env('HAOAPI_DGD_HOST', 'dgdapi.dev.julanling.com'),
            'device_type' => env('HAOAPI_DGD_DEVICE_TYPE', '2'),
            'dt_secret'   => env('HAOAPI_DGD_DT_SECRET', 'secret=apitesj3j9o9pksfrd')
        ]
    ],

    'log' => [
        'category'       => env('LOG_CATEGORY'),
        'file_base_name' => env('LOG_FILE_BASE_NAME')
    ],
    'java-request' => [
        'lifestyle-api' => [
            'host' => env('LIFESTYLE_API_HOST'),
            'connect_timeout' => env('LIFESTYLE_API_CONNECT_TIMEOUT', 1.0),
            'timeout' => env('LIFESTYLE_API_TIMEOUT', 3.0)
        ],
    ],
    'java-proxy' => [
        // 使用时，需要打开和配置
        'ax_user' => [
            'host' => env('JAVA_PROXY_AX_USER_HOST'),
            'connect_timeout' => env('JAVA_PROXY_AX_USER_CONNECT_TIMEOUT', 1.0),
            'timeout' => env('JAVA_PROXY_AX_USER_TIMEOUT', 3.0)
        ],
        // 使用时，需要打开和配置
        'data_market' => [
            'host' => env('JAVA_PROXY_DATA_MARKET'),
            'connect_timeout' => env('JAVA_PROXY_DATA_MARKET_CONNECT_TIMEOUT', 1.0),
            'timeout' => env('JAVA_PROXY_DATA_MARKET_TIMEOUT', 3.0)
        ]
    ]
];